/*
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1
 * @Author: HHL
 * @Date: 2022-12-01 18:48:49
 * @LastEditTime: 2025-08-06 23:03:41
 * @LastEditors: sueRimn
 */
import {
  BASEHOST,
} from '../../config'
import Request from '../http'


// 创建订单
export const getCreateOrder = data => Request.post(`${BASEHOST}/api/order/submit`, data)

// 获取订单列表
export const getOrderList = data => Request.get(`${BASEHOST}/api/order/search`, data)

//数据安全
export const getOrderDataSecurity = data => Request.get(`${BASEHOST}/api/order/dataSecurity`, data)

// 更新订单合作商信息
/**
 */
export const getOrderUpdatePartnerInfo = data => Request.post(`${BASEHOST}/api/order/updatePartner`, data)

// 订单可操作按钮
export const getOrderActions = data => Request.get(`${BASEHOST}/api/order/action`, data)

// 订单取消
export const getOrderCancel = data => Request.post(`${BASEHOST}/api/order/cancel`, data)

// 用户订单数量
export const getOrderStatusNumber = userId => Request.get(`${BASEHOST}/api/order/statusNumber`, { userId })

// 订单快递查询
export const getOrderExpress = expressNo => Request.get(`${BASEHOST}/api/orderExpress/list`, { expressNo })

//获取芝麻速办字符串
export const getpayAfterUseChar = data => Request.get(`${BASEHOST}/api/credit/signchar`, data)



// 支付宝项目公益列表
export const getOrderAlipayRecycleCharity = () => Request.get(`${BASEHOST}/api/commerce/recycle/query`, {})

// 支付宝公益订单列表
export const getOrderPerformanceList = data => Request.get(`${BASEHOST}/api/commerce/recycle/order`, data)

//支付宝助力公益
export const getOrderSaveCommonwealId = data => Request.put(`${BASEHOST}/api/commerce/recycle/update`, data)

//数据安全
export const getOrderAntCertList = data => Request.get(`${BASEHOST}/api/antcert/order`, data)



// 获取订单评价列表接口
export const getOrderCommentList = data => Request.get(`${BASEHOST}/api/orderComment/list`, data)

export const getOrderDetail = data => Request.get(`${BASEHOST}/api/order/detail`, data)

export const getOrderProcessDetail = data => Request.get(`${BASEHOST}/api/order/process/detail`, data)

// 验证是否可以同步速回收
export const canSyncSuhuishou = data => {
  return Request.get(`${BASEHOST}/api/order/canSyncSuhuishou`, data)
}

export const createClothesRecycleOrder = data => Request.post(`${BASEHOST}/api/order/clothes/create`, data)

// 获取质检报告
export const getInspectionDetail = data => Request.get(`${BASEHOST}/api/order/quality/detail`, data)

// 检查上门服务是否可用
export const checkDoorService = data => Request.get(`${BASEHOST}/api/doorService/check`, data)




